package br.com.jm.scwcd.obj3.filters;

import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;

public class CopyrightResponseWrapper extends HttpServletResponseWrapper {

	private StringWriter stringWriter = new StringWriter();
	
	private PrintWriter printWriter = new PrintWriter(stringWriter);
	
	
	public CopyrightResponseWrapper(HttpServletResponse response) {
		super(response);
	}
	
	
	@Override
	public PrintWriter getWriter() throws IOException {
		return printWriter;
	}
	
	StringWriter getInternalBuffer() {
		return this.stringWriter;
	}

}
